<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="" method="post" id="cp-form">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title">
                    <li class="layui-this">
                        <a href="{:url('admin/system.tongji/index')}">设置管理</a>
                    </li>
                    <li class="">
                        <a href="{:url('admin/system.tongji/siteinfo')}">网站概况</a>
                    </li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label">账号 <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <input type="text" name="username"  value="{$setting.username|default=''}" required lay-verify="required" placeholder="账号" autocomplete="off"  class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">密码 <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <input type="text" name="password" value="{$setting.password|default=''}" required lay-verify="required" placeholder="账号密码" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">token <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <input type="text" name="token"  value="{$setting.token|default=''}" required lay-verify="required" placeholder="token" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">站点id <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <input type="text" name="site_id"  value="{$setting.site_id|default=''}" required lay-verify="required" placeholder="站点id" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">账号类型 <span class="request-tips">*</span></label>
                            <div class="layui-input-block">
                                <select name="type">
                                    <option value="1" {if isset($setting.type) and $setting.type==1}selected{/if}>百度账号</option>
                                    <option value="2" {if isset($setting.type) and $setting.type==2}selected{/if}>百度商业账号</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
